package com.balance.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author fyy
 * @Description
 * @Date 2020/6/22 16:15
 */
@Configuration
public class MyRule {

    @Bean
    public IRule myIRule(){
        return new MyBalancerRule(); //随机
    }

}
